import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/v1/passport/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/v1/user/info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/v1/passport/login-out',
    method: 'post'
  })
}
export function resetPassword(data) {
  return request({
    url: '/v1/user/update',
    method: 'post',
    data: data
  })
}
export function walletLog(data) {
  return request({
    url: '/v1/user/wallet-log',
    method: 'post',
    data: data
  })
}
export function getStatistics(data) {
  return request({
    url: '/v1/user/statistics',
    method: 'post',
    data: data
  })
}
export function create(data) {
  return request({
    url: '/v1/user/create',
    method: 'post',
    data: data
  })
}
export function list(data) {
  return request({
    url: '/v1/user/list',
    method: 'post',
    data: data
  })
}
export function recharge(data) {
  return request({
    url: '/v1/user/recharge',
    method: 'post',
    data: data
  })
}
